<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>父级字典</title>
    <link rel="stylesheet" href="/static/lib/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/css/public.css" media="all">
</head>
<body>
<div class="layuimini-container">

    <div class="layuimini-main">
        <table class="layui-hide" id="dictionariesTable" lay-filter="dictionariesFilter"></table>
    </div>
</div>
<script src="/static/lib/layui/layui.js" charset="utf-8"></script>
<script>

    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    };

    layui.use(['form', 'table'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table;

        table.render({
            elem: '#dictionariesTable',
            url: '/dictionaries/type/title',
            response: {
                statusCode: 200 //规定成功的状态码，默认：0
                , countName: 'total' //规定数据总数的字段名称，默认：count
            },
            cols: [
                [
                    {type: "radio", width: "10%"},
                    {field: 'name', width: "40%", title: '字典名称'},
                    {field: 'value', width: "50%", title: '字典值'},
                ]
            ],
            id:"dictionariesTableId",
            skin: 'row'
        });
    });

</script>

</body>
</html>